package cn.client.data.remoteData.repository

import cn.client.data.remoteData.ApiService
import cn.client.data.remoteData.bean.AvoidancePainBean
import cn.client.data.remoteData.bean.AvoidancePainReq
import cn.client.data.remoteData.bean.BaseResp
import cn.client.data.remoteData.bean.PageSelectByUid
import javax.inject.Inject

class AvoidancePainRepository  @Inject constructor(private val apiService: ApiService) {

    suspend fun addAvoidancePain(req: AvoidancePainReq): BaseResp<Any>{
        return apiService.addAvoidancePain(req)
    }

    suspend fun selectListAvoidancePain(req: PageSelectByUid): BaseResp<List<AvoidancePainBean>> {
        return apiService.selectListAvoidancePain(req)
    }

    suspend fun selectInfoAvoidancePain(id: Int): BaseResp<AvoidancePainBean> {
        return apiService.selectInfoAvoidancePain(id)
    }

    suspend fun deleteAvoidancePain(id: Int): BaseResp<Any> {
        return apiService.deleteAvoidancePain(id)
    }
}